<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
   

return [
    
    /*
     *读取天神业务库配置
     */
    'tianshendai_read' => [
        'type'           => 'mysql',
//        'hostname'       => 'rr-m5elteq4sghoz091q.mysql.rds.aliyuncs.com',
        'hostname'       => 'rr-m5e53pvx4yk15o4u0.mysql.rds.aliyuncs.com',
        'database'       => 'tianshendai_pro',
        //        'database'       => 'tianshendai_dev',
        'username'       => 'tianshendb_read',
        //        'password'       =>'root',
        'password'       =>'M75$a2L*aRIr',
        'hostport'       => '3306'
    ],

//    'log' => [
//        // 日志记录方式，支持 file socket
//        'type' => 'File',
//        // 日志保存目录
//        'path' => '/mnt'.dirname($_SERVER['SCRIPT_FILENAME']).'/console/',
//        'LOG_RECORD_LEVEL'  => ['error','notice' ],
//    ],
//    'redis'=>[
//        'host'       => '127.0.0.1',
//        'port'       => '6379',
//        'password'   => '',
//        'select'     => 0,
//        'timeout'    => 0,
//        'expire'     => 0,
//        'persistent' => false,
//        'prefix'     => '',
//    ],
//    'redis'=>[
//        'host'       => '115.182.49.78',
//        'type'       =>'redis',
//        'port'       => '6379',
//        'password'   => 'secret@9maibei',
//        'select'     => 0,
//        'timeout'    => 300,
//        'expire'     => 0,
//        'persistent' => true,
//        'prefix'     => 'Redis_',
//    ],
    'redis'=>[
        //'host'       => '115.182.49.78',
        'host'       =>'r-m5ef99b45ce76dc4.redis.rds.aliyuncs.com',
        'port'       => 6379,
        'password'   => 'TishJr622NgRes',
        'select'     => 0,
        'timeout'    => 300,
        'expire'     => 0,
        'persistent' => true,
        'prefix'     => 'Redis_',
    ],
// 22     'DATA_CACHE_PREFIX' => 'Redis_',//缓存前缀
// 23     'DATA_CACHE_TYPE'   => 'Redis',//默认动态缓存为Redis
// 24     'REDIS_RW_SEPARATE' => true, //Redis读写分离 true 开启
// 25     'REDIS_HOST'        => '127.0.0.1', //redis服务器ip，多台用逗号隔开；读写分离开启时，第一台负责写，其它[随机]负责读；
// 26     'REDIS_PORT'        => '6379',//端口号
// 27     'REDIS_TIMEOUT'     => '300',//超时时间
// 28     'REDIS_PERSISTENT'  => true,//是否长连接 false=短连接
// 29     'REDIS_AUTH'        => 'secret@9maibei',//AUTH认证密码

    
];